package com.cr.sync.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 远程数据-检测信息对象 tb_sync_detection_sampling
 * 
 * @author tang
 * @date 2025-08-29
 */
public class TbSyncDetectionSampling implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 抽样人员 */
    private String samplingOperator;

    /** 检测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date detectionTime;

    /** 检测单位名称 */
    private String detectionInstitutionName;

    /** 受检单位名称 */
    private String inspectedInstitutionName;

    /** 附件 */
    private String annex;

    /** 关联 检测任务表获取 (0.普通1.紧急2.特急) */
    private String taskPriority;

    /** 抽样场所主键【1、生产基地/企业；2、屠宰场；3、农贸市场；4、批发市场；5、超市；6、其他；7、种养殖散户；8、合作社；9、养殖场】 */
    private String samplingPlaceId;

    /** 任务名称 */
    private String taskName;

    /** 发布单位 */
    private String supervisorName;

    /** 样品名称 */
    private String sampleName;

    /** 样品编码 */
    private String sampleCode;

    /** 行业(1.种植业、2.畜牧业、3.水产业、4.其他行业) */
    private String reportIndustry;

    /** 抽样单位 */
    private String samplingInstitutionName;

    /** 检测结果（1合格，0不合格） */
    private String detectionResult;

    /** 任务类型 (0, 例行检测),(1, 专项检测),(2, 监督抽查),(3, 复检任务),(4, 快速检测) */
    private String taskType;

    private List<TbSyncDetectionSamplingDetail> detectionResultDetail;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setSamplingOperator(String samplingOperator) 
    {
        this.samplingOperator = samplingOperator;
    }

    public String getSamplingOperator() 
    {
        return samplingOperator;
    }

    public void setDetectionTime(Date detectionTime) 
    {
        this.detectionTime = detectionTime;
    }

    public Date getDetectionTime() 
    {
        return detectionTime;
    }

    public String getDetectionInstitutionName() {
        return detectionInstitutionName;
    }

    public void setDetectionInstitutionName(String detectionInstitutionName) {
        this.detectionInstitutionName = detectionInstitutionName;
    }

    public void setInspectedInstitutionName(String inspectedInstitutionName)
    {
        this.inspectedInstitutionName = inspectedInstitutionName;
    }

    public String getInspectedInstitutionName()
    {
        return inspectedInstitutionName;
    }

    public void setAnnex(String annex) 
    {
        this.annex = annex;
    }

    public String getAnnex() 
    {
        return annex;
    }

    public void setTaskPriority(String taskPriority) 
    {
        this.taskPriority = taskPriority;
    }

    public String getTaskPriority() 
    {
        return taskPriority;
    }

    public String getSamplingPlaceId() {
        return samplingPlaceId;
    }

    public void setSamplingPlaceId(String samplingPlaceId) {
        this.samplingPlaceId = samplingPlaceId;
    }

    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }

    public void setSupervisorName(String supervisorName) 
    {
        this.supervisorName = supervisorName;
    }

    public String getSupervisorName() 
    {
        return supervisorName;
    }

    public void setSampleName(String sampleName) 
    {
        this.sampleName = sampleName;
    }

    public String getSampleName() 
    {
        return sampleName;
    }

    public void setSampleCode(String sampleCode) 
    {
        this.sampleCode = sampleCode;
    }

    public String getSampleCode() 
    {
        return sampleCode;
    }

    public void setReportIndustry(String reportIndustry) 
    {
        this.reportIndustry = reportIndustry;
    }

    public String getReportIndustry() 
    {
        return reportIndustry;
    }

    public void setSamplingInstitutionName(String samplingInstitutionName) 
    {
        this.samplingInstitutionName = samplingInstitutionName;
    }

    public String getSamplingInstitutionName() 
    {
        return samplingInstitutionName;
    }

    public void setDetectionResult(String detectionResult) 
    {
        this.detectionResult = detectionResult;
    }

    public String getDetectionResult() 
    {
        return detectionResult;
    }

    public void setTaskType(String taskType) 
    {
        this.taskType = taskType;
    }

    public String getTaskType() 
    {
        return taskType;
    }

    public List<TbSyncDetectionSamplingDetail> getDetectionResultDetail() {
        return detectionResultDetail;
    }

    public void setDetectionResultDetail(List<TbSyncDetectionSamplingDetail> detectionResultDetail) {
        this.detectionResultDetail = detectionResultDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("samplingOperator", getSamplingOperator())
            .append("detectionTime", getDetectionTime())
            .append("detectionInstitutionName", getDetectionInstitutionName())
            .append("inspectedInstitutionName", getInspectedInstitutionName())
            .append("annex", getAnnex())
            .append("taskPriority", getTaskPriority())
            .append("samplingPlaceId", getSamplingPlaceId())
            .append("taskName", getTaskName())
            .append("supervisorName", getSupervisorName())
            .append("sampleName", getSampleName())
            .append("sampleCode", getSampleCode())
            .append("reportIndustry", getReportIndustry())
            .append("samplingInstitutionName", getSamplingInstitutionName())
            .append("detectionResult", getDetectionResult())
            .append("taskType", getTaskType())
            .toString();
    }
}
